/*
package com.wzy.chain_responsibility.demo1;

import com.wzy.chain_responsibility.demo1.handle.BankOrderHandleInterceptService;
import com.wzy.chain_responsibility.demo1.handle.RepeatOrderHandleInterceptService;
import com.wzy.chain_responsibility.demo1.handle.ValidOrderHandleInterceptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.ArrayList;
import java.util.List;

*/
/**
 * @Author: wzy
 * @Date: 2022/10/08/19:24
 * @Description:
 *//*

@Component
public class OrderHandleChainService2 {

    private List<OrderHandleIntercept> handleList = new ArrayList<>();


    @Autowired
    private ValidOrderHandleInterceptService validOrderHandleInterceptService;

    @Autowired
    private RepeatOrderHandleInterceptService repeatOrderHandleInterceptService;

    @Autowired
    private BankOrderHandleInterceptService bankOrderHandleInterceptService;

    @PostConstruct
    public void init() {
        //依次手动add对象
        handleList.add(repeatOrderHandleInterceptService);
        handleList.add(validOrderHandleInterceptService);
        handleList.add(bankOrderHandleInterceptService);
    }

    */
/**
     * 执行处理
     *
     * @param context
     * @return
     *//*

    public OrderContext execute(OrderContext context) {
        for (OrderHandleIntercept handleIntercept : handleList) {
            context = handleIntercept.handle(context);
        }
        return context;
    }
}
*/
